<!doctype html>
<html>
<head>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
<title>cloud_03</title><style type='text/css'>html {overflow-x: initial !important;}:root { --node-fill: #ECECFF; --node-border: #CCCCFF; --cluster-fill: #ffffde; --cluster-border: #aaaa33; --note-fill: #fff5ad; --note-border: #aaaa33; --mermaid-color: var(--text-color); }


:root { --bg-color:#ffffff; --text-color:#333333; --select-text-bg-color:#B5D6FC; --select-text-font-color:auto; --monospace:"Lucida Console",Consolas,"Courier",monospace; --title-bar-height:20px; }
.mac-os-11 { --title-bar-height:28px; }
html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; tab-size: 4; }
iframe { margin: auto; }
a.url { word-break: break-all; }
a:active, a:hover { outline: 0px; }
.in-text-selection, ::selection { text-shadow: none; background: var(--select-text-bg-color); color: var(--select-text-font-color); }
#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; overflow-wrap: break-word; position: relative; white-space: normal; overflow-x: visible; padding-top: 36px; }
#write.first-line-indent p { text-indent: 2em; }
#write.first-line-indent li p, #write.first-line-indent p * { text-indent: 0px; }
#write.first-line-indent li { margin-left: 2em; }
.for-image #write { padding-left: 8px; padding-right: 8px; }
body.typora-export { padding-left: 30px; padding-right: 30px; }
.typora-export .footnote-line, .typora-export li, .typora-export p { white-space: pre-wrap; }
.typora-export .task-list-item input { pointer-events: none; }
@media screen and (max-width: 500px) {
  body.typora-export { padding-left: 0px; padding-right: 0px; }
  #write { padding-left: 20px; padding-right: 20px; }
  .CodeMirror-sizer { margin-left: 0px !important; }
  .CodeMirror-gutters { display: none !important; }
}
#write li > figure:last-child { margin-bottom: 0.5rem; }
#write ol, #write ul { position: relative; }
img { max-width: 100%; vertical-align: middle; image-orientation: from-image; }
button, input, select, textarea { color: inherit; font: inherit; }
input[type="checkbox"], input[type="radio"] { line-height: normal; padding: 0px; }
*, ::after, ::before { box-sizing: border-box; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre { width: inherit; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p { position: relative; }
p { line-height: inherit; }
h1, h2, h3, h4, h5, h6 { break-after: avoid-page; break-inside: avoid; orphans: 4; }
p { orphans: 4; }
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }
.md-math-block, .md-rawblock, h1, h2, h3, h4, h5, h6, p { margin-top: 1rem; margin-bottom: 1rem; }
.hidden { display: none; }
.md-blockmeta { color: rgb(204, 204, 204); font-weight: 700; font-style: italic; }
a { cursor: pointer; }
sup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; cursor: pointer; }
sup.md-footnote a, sup.md-footnote a:hover { color: inherit; text-transform: inherit; text-decoration: inherit; }
#write input[type="checkbox"] { cursor: pointer; width: inherit; height: inherit; }
figure { overflow-x: auto; margin: 1.2em 0px; max-width: calc(100% + 16px); padding: 0px; }
figure > table { margin: 0px; }
tr { break-inside: avoid; break-after: auto; }
thead { display: table-header-group; }
table { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }
table.md-table td { min-width: 32px; }
.CodeMirror-gutters { border-right: 0px; background-color: inherit; }
.CodeMirror-linenumber { user-select: none; }
.CodeMirror { text-align: left; }
.CodeMirror-placeholder { opacity: 0.3; }
.CodeMirror pre { padding: 0px 4px; }
.CodeMirror-lines { padding: 0px; }
div.hr:focus { cursor: none; }
#write pre { white-space: pre-wrap; }
#write.fences-no-line-wrapping pre { white-space: pre; }
#write pre.ty-contain-cm { white-space: normal; }
.CodeMirror-gutters { margin-right: 4px; }
.md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background: inherit; position: relative !important; }
.md-diagram-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }
#write .md-fences.mock-cm { white-space: pre-wrap; }
.md-fences.md-fences-with-lineno { padding-left: 0px; }
#write.fences-no-line-wrapping .md-fences.mock-cm { white-space: pre; overflow-x: auto; }
.md-fences.mock-cm.md-fences-with-lineno { padding-left: 8px; }
.CodeMirror-line, twitterwidget { break-inside: avoid; }
.footnotes { opacity: 0.8; font-size: 0.9rem; margin-top: 1em; margin-bottom: 1em; }
.footnotes + .footnotes { margin-top: 0px; }
.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background: 0px 0px; text-decoration: none; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; -webkit-tap-highlight-color: transparent; line-height: normal; font-weight: 400; text-align: left; box-sizing: content-box; direction: ltr; }
li div { padding-top: 0px; }
blockquote { margin: 1rem 0px; }
li .mathjax-block, li p { margin: 0.5rem 0px; }
li blockquote { margin: 1rem 0px; }
li { margin: 0px; position: relative; }
blockquote > :last-child { margin-bottom: 0px; }
blockquote > :first-child, li > :first-child { margin-top: 0px; }
.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; white-space: normal; }
#write .footnote-line { white-space: pre-wrap; }
@media print {
  body, html { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; font-variant-ligatures: no-common-ligatures; }
  #write { margin-top: 0px; padding-top: 0px; border-color: transparent !important; }
  .typora-export * { -webkit-print-color-adjust: exact; }
  .typora-export #write { break-after: avoid; }
  .typora-export #write::after { height: 0px; }
  .is-mac table { break-inside: avoid; }
}
.footnote-line { margin-top: 0.714em; font-size: 0.7em; }
a img, img a { cursor: pointer; }
pre.md-meta-block { font-size: 0.8rem; min-height: 0.8rem; white-space: pre-wrap; background: rgb(204, 204, 204); display: block; overflow-x: hidden; }
p > .md-image:only-child:not(.md-img-error) img, p > img:only-child { display: block; margin: auto; }
#write.first-line-indent p > .md-image:only-child:not(.md-img-error) img { left: -2em; position: relative; }
p > .md-image:only-child { display: inline-block; width: 100%; }
#write .MathJax_Display { margin: 0.8em 0px 0px; }
.md-math-block { width: 100%; }
.md-math-block:not(:empty)::after { display: none; }
.MathJax_ref { fill: currentcolor; }
[contenteditable="true"]:active, [contenteditable="true"]:focus, [contenteditable="false"]:active, [contenteditable="false"]:focus { outline: 0px; box-shadow: none; }
.md-task-list-item { position: relative; list-style-type: none; }
.task-list-item.md-task-list-item { padding-left: 0px; }
.md-task-list-item > input { position: absolute; top: 0px; left: 0px; margin-left: -1.2em; margin-top: calc(1em - 10px); border: none; }
.math { font-size: 1rem; }
.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }
.md-toc-content { position: relative; margin-left: 0px; }
.md-toc-content::after, .md-toc::after { display: none; }
.md-toc-item { display: block; color: rgb(65, 131, 196); }
.md-toc-item a { text-decoration: none; }
.md-toc-inner:hover { text-decoration: underline; }
.md-toc-inner { display: inline-block; cursor: pointer; }
.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: 700; }
.md-toc-h2 .md-toc-inner { margin-left: 2em; }
.md-toc-h3 .md-toc-inner { margin-left: 4em; }
.md-toc-h4 .md-toc-inner { margin-left: 6em; }
.md-toc-h5 .md-toc-inner { margin-left: 8em; }
.md-toc-h6 .md-toc-inner { margin-left: 10em; }
@media screen and (max-width: 48em) {
  .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }
  .md-toc-h4 .md-toc-inner { margin-left: 5em; }
  .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }
  .md-toc-h6 .md-toc-inner { margin-left: 8em; }
}
a.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }
.footnote-line a:not(.reversefootnote) { color: inherit; }
.md-attr { display: none; }
.md-fn-count::after { content: "."; }
code, pre, samp, tt { font-family: var(--monospace); }
kbd { margin: 0px 0.1em; padding: 0.1em 0.6em; font-size: 0.8em; color: rgb(36, 39, 41); background: rgb(255, 255, 255); border: 1px solid rgb(173, 179, 185); border-radius: 3px; box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset; white-space: nowrap; vertical-align: middle; }
.md-comment { color: rgb(162, 127, 3); opacity: 0.8; font-family: var(--monospace); }
code { text-align: left; vertical-align: initial; }
a.md-print-anchor { white-space: pre !important; border-width: initial !important; border-style: none !important; border-color: initial !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: 0px !important; background: 0px 0px !important; text-decoration: initial !important; text-shadow: initial !important; }
.md-inline-math .MathJax_SVG .noError { display: none !important; }
.html-for-mac .inline-math-svg .MathJax_SVG { vertical-align: 0.2px; }
.md-math-block .MathJax_SVG_Display { text-align: center; margin: 0px; position: relative; text-indent: 0px; max-width: none; max-height: none; min-height: 0px; min-width: 100%; width: auto; overflow-y: hidden; display: block !important; }
.MathJax_SVG_Display, .md-inline-math .MathJax_SVG_Display { width: auto; margin: inherit; display: inline-block !important; }
.MathJax_SVG .MJX-monospace { font-family: var(--monospace); }
.MathJax_SVG .MJX-sans-serif { font-family: sans-serif; }
.MathJax_SVG { display: inline; font-style: normal; font-weight: 400; line-height: normal; zoom: 90%; text-indent: 0px; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; padding: 0px; margin: 0px; }
.MathJax_SVG * { transition: none 0s ease 0s; }
.MathJax_SVG_Display svg { vertical-align: middle !important; margin-bottom: 0px !important; margin-top: 0px !important; }
.os-windows.monocolor-emoji .md-emoji { font-family: "Segoe UI Symbol", sans-serif; }
.md-diagram-panel > svg { max-width: 100%; }
[lang="flow"] svg, [lang="mermaid"] svg { max-width: 100%; height: auto; }
[lang="mermaid"] .node text { font-size: 1rem; }
table tr th { border-bottom: 0px; }
video { max-width: 100%; display: block; margin: 0px auto; }
iframe { max-width: 100%; width: 100%; border: none; }
.highlight td, .highlight tr { border: 0px; }
mark { background: rgb(255, 255, 0); color: rgb(0, 0, 0); }
.md-html-inline .md-plain, .md-html-inline strong, mark .md-inline-math, mark strong { color: inherit; }
mark .md-meta { color: rgb(0, 0, 0); opacity: 0.3 !important; }
@media print {
  .typora-export h1, .typora-export h2, .typora-export h3, .typora-export h4, .typora-export h5, .typora-export h6 { break-inside: avoid; }
}
.md-diagram-panel .messageText { stroke: none !important; }
.md-diagram-panel .start-state { fill: var(--node-fill); }
.md-diagram-panel .edgeLabel rect { opacity: 1 !important; }
.md-require-zoom-fix foreignobject { font-size: var(--mermaid-font-zoom); }


.CodeMirror { height: auto; }
.CodeMirror.cm-s-inner { background: inherit; }
.CodeMirror-scroll { overflow: auto hidden; z-index: 3; }
.CodeMirror-gutter-filler, .CodeMirror-scrollbar-filler { background-color: rgb(255, 255, 255); }
.CodeMirror-gutters { border-right: 1px solid rgb(221, 221, 221); background: inherit; white-space: nowrap; }
.CodeMirror-linenumber { padding: 0px 3px 0px 5px; text-align: right; color: rgb(153, 153, 153); }
.cm-s-inner .cm-keyword { color: rgb(119, 0, 136); }
.cm-s-inner .cm-atom, .cm-s-inner.cm-atom { color: rgb(34, 17, 153); }
.cm-s-inner .cm-number { color: rgb(17, 102, 68); }
.cm-s-inner .cm-def { color: rgb(0, 0, 255); }
.cm-s-inner .cm-variable { color: rgb(0, 0, 0); }
.cm-s-inner .cm-variable-2 { color: rgb(0, 85, 170); }
.cm-s-inner .cm-variable-3 { color: rgb(0, 136, 85); }
.cm-s-inner .cm-string { color: rgb(170, 17, 17); }
.cm-s-inner .cm-property { color: rgb(0, 0, 0); }
.cm-s-inner .cm-operator { color: rgb(152, 26, 26); }
.cm-s-inner .cm-comment, .cm-s-inner.cm-comment { color: rgb(170, 85, 0); }
.cm-s-inner .cm-string-2 { color: rgb(255, 85, 0); }
.cm-s-inner .cm-meta { color: rgb(85, 85, 85); }
.cm-s-inner .cm-qualifier { color: rgb(85, 85, 85); }
.cm-s-inner .cm-builtin { color: rgb(51, 0, 170); }
.cm-s-inner .cm-bracket { color: rgb(153, 153, 119); }
.cm-s-inner .cm-tag { color: rgb(17, 119, 0); }
.cm-s-inner .cm-attribute { color: rgb(0, 0, 204); }
.cm-s-inner .cm-header, .cm-s-inner.cm-header { color: rgb(0, 0, 255); }
.cm-s-inner .cm-quote, .cm-s-inner.cm-quote { color: rgb(0, 153, 0); }
.cm-s-inner .cm-hr, .cm-s-inner.cm-hr { color: rgb(153, 153, 153); }
.cm-s-inner .cm-link, .cm-s-inner.cm-link { color: rgb(0, 0, 204); }
.cm-negative { color: rgb(221, 68, 68); }
.cm-positive { color: rgb(34, 153, 34); }
.cm-header, .cm-strong { font-weight: 700; }
.cm-del { text-decoration: line-through; }
.cm-em { font-style: italic; }
.cm-link { text-decoration: underline; }
.cm-error { color: red; }
.cm-invalidchar { color: red; }
.cm-constant { color: rgb(38, 139, 210); }
.cm-defined { color: rgb(181, 137, 0); }
div.CodeMirror span.CodeMirror-matchingbracket { color: rgb(0, 255, 0); }
div.CodeMirror span.CodeMirror-nonmatchingbracket { color: rgb(255, 34, 34); }
.cm-s-inner .CodeMirror-activeline-background { background: inherit; }
.CodeMirror { position: relative; overflow: hidden; }
.CodeMirror-scroll { height: 100%; outline: 0px; position: relative; box-sizing: content-box; background: inherit; }
.CodeMirror-sizer { position: relative; }
.CodeMirror-gutter-filler, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-vscrollbar { position: absolute; z-index: 6; display: none; }
.CodeMirror-vscrollbar { right: 0px; top: 0px; overflow: hidden; }
.CodeMirror-hscrollbar { bottom: 0px; left: 0px; overflow: hidden; }
.CodeMirror-scrollbar-filler { right: 0px; bottom: 0px; }
.CodeMirror-gutter-filler { left: 0px; bottom: 0px; }
.CodeMirror-gutters { position: absolute; left: 0px; top: 0px; padding-bottom: 30px; z-index: 3; }
.CodeMirror-gutter { white-space: normal; height: 100%; box-sizing: content-box; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; }
.CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: 0px 0px !important; border: none !important; }
.CodeMirror-gutter-background { position: absolute; top: 0px; bottom: 0px; z-index: 4; }
.CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }
.CodeMirror-lines { cursor: text; }
.CodeMirror pre { border-radius: 0px; border-width: 0px; background: 0px 0px; font-family: inherit; font-size: inherit; margin: 0px; white-space: pre; overflow-wrap: normal; color: inherit; z-index: 2; position: relative; overflow: visible; }
.CodeMirror-wrap pre { overflow-wrap: break-word; white-space: pre-wrap; word-break: normal; }
.CodeMirror-code pre { border-right: 30px solid transparent; width: fit-content; }
.CodeMirror-wrap .CodeMirror-code pre { border-right: none; width: auto; }
.CodeMirror-linebackground { position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 0; }
.CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; }
.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }
.CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; }
.CodeMirror-measure pre { position: static; }
.CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right: none; width: 0px; }
.CodeMirror div.CodeMirror-cursor { visibility: hidden; }
.CodeMirror-focused div.CodeMirror-cursor { visibility: inherit; }
.cm-searching { background: rgba(255, 255, 0, 0.4); }
@media print {
  .CodeMirror div.CodeMirror-cursor { visibility: hidden; }
}


html {
	font-size: 19px;
}

html, body {
	margin: auto;
	background: #fefefe;
}
body {
	font-family: "Vollkorn", Palatino, Times;
	color: #333;
	line-height: 1.4;
	text-align: justify;
}

#write {
	max-width: 960px;
	margin: 0 auto;
	margin-bottom: 2em;
	line-height: 1.53;
	padding-top: 40px;
}

@media only screen and (min-width: 1400px) {
	#write {
		max-width: 1100px;
	}
}

@media print {
	html {
		font-size: 13px;
	}
}

/* Typography
-------------------------------------------------------- */

#write>h1:first-child,
h1 {
	margin-top: 1.6em;
	font-weight: normal;
}

h1 {
	font-size:3em;
}

h2 {
	margin-top:2em;
	font-weight: normal;
}

h3 {
	font-weight: normal;
	font-style: italic;
	margin-top: 3em;
}

h1, 
h2, 
h3{
	text-align: center;
}

h2:after{
	border-bottom: 1px solid #2f2f2f;
    content: '';
    width: 100px;
    display: block;
    margin: 0 auto;
    height: 1px;
}

h1+h2, h2+h3 {
	margin-top: 0.83em;
}

p,
.mathjax-block {
	margin-top: 0;
	-webkit-hypens: auto;
	-moz-hypens: auto;
	hyphens: auto;
}
ul {
	list-style: square;
	padding-left: 1.2em;
}
ol {
	padding-left: 1.2em;
}
blockquote {
	margin-left: 1em;
	padding-left: 1em;
	border-left: 1px solid #ddd;
}
code,
pre {
	font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
	font-size: .9em;
	background: white;
}
.md-fences{
	margin-left: 1em;
	padding-left: 1em;
	border: 1px solid #ddd;
	padding-bottom: 8px;
	padding-top: 6px;
	margin-bottom: 1.5em;
}

a {
	color: #2484c1;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a img {
	border: none;
}
h1 a,
h1 a:hover {
	color: #333;
	text-decoration: none;
}
hr {
	color: #ddd;
	height: 1px;
	margin: 2em 0;
	border-top: solid 1px #ddd;
	border-bottom: none;
	border-left: 0;
	border-right: 0;
}
.ty-table-edit {
	background: #ededed;
    padding-top: 4px;
}
table {
	margin-bottom: 1.333333rem
}
table th,
table td {
	padding: 8px;
	line-height: 1.333333rem;
	vertical-align: top;
	border-top: 1px solid #ddd
}
table th {
	font-weight: bold
}
table thead th {
	vertical-align: bottom
}
table caption+thead tr:first-child th,
table caption+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
	border-top: 0
}
table tbody+tbody {
	border-top: 2px solid #ddd
}

.task-list{
	padding:0;
}

.md-task-list-item {
	padding-left: 1.6rem;
}

.md-task-list-item > input:before {
	content: '\221A';
	display: inline-block;
	width: 1.33333333rem;
  	height: 1.6rem;
	vertical-align: middle;
	text-align: center;
	color: #ddd;
	background-color: #fefefe;
}

.md-task-list-item > input:checked:before,
.md-task-list-item > input[checked]:before{
	color: inherit;
}
.md-tag {
	color: inherit;
	font: inherit;
}
#write pre.md-meta-block {
	min-height: 35px;
	padding: 0.5em 1em;
}
#write pre.md-meta-block {
	white-space: pre;
	background: #f8f8f8;
	border: 0px;
	color: #999;
	
	width: 100vw;
	max-width: calc(100% + 60px);
	margin-left: -30px;
	border-left: 30px #f8f8f8 solid;
	border-right: 30px #f8f8f8 solid;

	margin-bottom: 2em;
	margin-top: -1.3333333333333rem;
	padding-top: 26px;
	padding-bottom: 10px;
	line-height: 1.8em;
	font-size: 0.9em;
	font-size: 0.76em;
	padding-left: 0;
}
.md-img-error.md-image>.md-meta{
	vertical-align: bottom;
}
#write>h5.md-focus:before {
	top: 2px;
}

.md-toc {
	margin-top: 40px;
}

.md-toc-content {
	padding-bottom: 20px;
}

.outline-expander:before {
	color: inherit;
	font-size: 14px;
	top: auto;
	content: "\f0da";
	font-family: FontAwesome;
}

.outline-expander:hover:before,
.outline-item-open>.outline-item>.outline-expander:before {
  	content: "\f0d7";
}

/** source code mode */
#typora-source {
	font-family: Courier, monospace;
    color: #6A6A6A;
}

.html-for-mac #typora-sidebar {
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.cm-s-typora-default .cm-header, 
.cm-s-typora-default .cm-property,
.CodeMirror.cm-s-typora-default div.CodeMirror-cursor {
	color: #428bca;
}

.cm-s-typora-default .cm-atom, .cm-s-typora-default .cm-number {
	color: #777777;
}

.typora-node .file-list-item-parent-loc, 
.typora-node .file-list-item-time, 
.typora-node .file-list-item-summary {
	font-family: arial, sans-serif;
}

.md-task-list-item>input {
    margin-left: -1.3em;
    margin-top: calc(1rem - 12px);
}

.md-mathjax-midline {
	background: #fafafa;
}

.md-fences .code-tooltip {
	bottom: -2em !important;
}

.dropdown-menu .divider {
	border-color: #e5e5e5;
}

 :root {--mermaid-font-zoom:1.44em ;} 
</style>
</head>
<body class='typora-export os-windows'>
<div id='write'  class=''><h1><a name="elk日志分析平台" class="md-header-anchor"></a><span>ELK日志分析平台</span></h1><div class='md-toc' mdtype='toc'><p class="md-toc-content" role="list"><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n0"><a class="md-toc-inner" href="#elk日志分析平台">ELK日志分析平台</a></span><span role="listitem" class="md-toc-item md-toc-h2" data-ref="n3"><a class="md-toc-inner" href="#网站云平台部署实战">网站云平台部署实战</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n4"><a class="md-toc-inner" href="#网站架构图">网站架构图</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n6"><a class="md-toc-inner" href="#系统规划">系统规划</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n33"><a class="md-toc-inner" href="#安装部署">安装部署</a></span><span role="listitem" class="md-toc-item md-toc-h2" data-ref="n52"><a class="md-toc-inner" href="#elk架构图例">ELK架构图例</a></span><span role="listitem" class="md-toc-item md-toc-h2" data-ref="n54"><a class="md-toc-inner" href="#elasticsearch-安装">Elasticsearch 安装</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n55"><a class="md-toc-inner" href="#在跳板机上配置-yum-仓库">在跳板机上配置 yum 仓库</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n58"><a class="md-toc-inner" href="#购买云主机">购买云主机 </a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n84"><a class="md-toc-inner" href="#单机安装">单机安装</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n86"><a class="md-toc-inner" href="#集群安装">集群安装</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n92"><a class="md-toc-inner" href="#head插件安装">head插件安装</a></span><span role="listitem" class="md-toc-item md-toc-h2" data-ref="n116"><a class="md-toc-inner" href="#elasticsearch基本操作">Elasticsearch基本操作</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n117"><a class="md-toc-inner" href="#集群api简介">集群API简介</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n118"><a class="md-toc-inner" href="#集群状态查询">集群状态查询</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n120"><a class="md-toc-inner" href="#创建索引">创建索引</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n130"><a class="md-toc-inner" href="#增加数据">增加数据</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n133"><a class="md-toc-inner" href="#查询数据">查询数据</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n136"><a class="md-toc-inner" href="#修改数据">修改数据</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n140"><a class="md-toc-inner" href="#删除数据">删除数据</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n143"><a class="md-toc-inner" href="#导入数据">导入数据</a></span><span role="listitem" class="md-toc-item md-toc-h2" data-ref="n148"><a class="md-toc-inner" href="#kibana安装">kibana安装</a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n149"><a class="md-toc-inner" href="#购买云主机-n149">购买云主机 </a></span><span role="listitem" class="md-toc-item md-toc-h3" data-ref="n159"><a class="md-toc-inner" href="#安装kibana">安装kibana</a></span></p></div><h2><a name="网站云平台部署实战" class="md-header-anchor"></a><span>网站云平台部署实战</span></h2><h3><a name="网站架构图" class="md-header-anchor"></a><span>网站架构图</span></h3><div class="md-diagram-panel"><svg id="mermaidChart3" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="433.8393249511719" style="max-width: 742.703px; height: 473.839px;" viewBox="0 0 742.7027587890625 433.8393249511719" class="md-require-zoom-fix"><style>#mermaidChart3{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;fill:#333333;}#mermaidChart3 .error-icon{fill:hsl(60,100%,100%);}#mermaidChart3 .error-text{fill:rgb(0,0,0);stroke:rgb(0,0,0);}#mermaidChart3 .edge-thickness-normal{stroke-width:2px;}#mermaidChart3 .edge-thickness-thick{stroke-width:3.5px;}#mermaidChart3 .edge-pattern-solid{stroke-dasharray:0;}#mermaidChart3 .edge-pattern-dashed{stroke-dasharray:3;}#mermaidChart3 .edge-pattern-dotted{stroke-dasharray:2;}#mermaidChart3 .marker{fill:#000000;}#mermaidChart3 .marker.cross{stroke:#000000;}#mermaidChart3 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;}#mermaidChart3 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaidChart3 .label text{fill:#333;}#mermaidChart3 .node rect,#mermaidChart3 .node circle,#mermaidChart3 .node ellipse,#mermaidChart3 .node polygon,#mermaidChart3 .node path{fill:#ECECFF;stroke:hsl(240,60%,86.2745098039%);stroke-width:1px;}#mermaidChart3 .node .label{text-align:center;}#mermaidChart3 .node.clickable{cursor:pointer;}#mermaidChart3 .arrowheadPath{fill:undefined;}#mermaidChart3 .edgePath .path{stroke:#000000;stroke-width:1.5px;}#mermaidChart3 .flowchart-link{stroke:#000000;fill:none;}#mermaidChart3 .edgeLabel{background-color:#f4f4f4;text-align:center;}#mermaidChart3 .edgeLabel rect{opacity:0.5;background-color:#f4f4f4;fill:#f4f4f4;}#mermaidChart3 .cluster rect{fill:hsl(60,100%,100%);stroke:hsl(60,60%,90%);stroke-width:1px;}#mermaidChart3 .cluster text{fill:rgb(0,0,0);}#mermaidChart3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(60,100%,100%);border:1px solid undefined;border-radius:2px;pointer-events:none;z-index:100;}#mermaidChart3:root{--mermaid-font-family:sans-serif;}#mermaidChart3:root{--mermaid-alt-font-family:sans-serif;}#mermaidChart3 .Cloud &gt; *{fill:#ccffcc !important;color:#000000 !important;stroke:#f66 !important;stroke-width:3px !important;}#mermaidChart3 .Cloud tspan{fill:#000000 !important;}#mermaidChart3 .Cluster &gt; *{fill:#ccccff !important;color:#000066 !important;stroke:#f66 !important;stroke-width:3px !important;}#mermaidChart3 .Cluster tspan{fill:#000066 !important;}#mermaidChart3 .ELB &gt; *{fill:#ffaa44 !important;stroke:#000000 !important;stroke-width:3px !important;}#mermaidChart3 .ELB tspan{!important;}#mermaidChart3 .User &gt; *{fill:#90f0f0 !important;stroke:#000000 !important;stroke-width:3px !important;}#mermaidChart3 .User tspan{!important;}#mermaidChart3 .U1 &gt; *{fill:#8f8f8f !important;color:#ffffff !important;stroke:#020202 !important;stroke-width:3px !important;}#mermaidChart3 .U1 tspan{fill:#ffffff !important;}#mermaidChart3 flowchart-v2{fill:apa;}</style><g transform="translate(0, 2)"><marker id="flowchart-pointEnd" class="marker flowchart" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-pointStart" class="marker flowchart" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-circleEnd" class="marker flowchart" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-circleStart" class="marker flowchart" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-crossEnd" class="marker cross flowchart" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-crossStart" class="marker cross flowchart" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><g class="root"><g class="clusters"><g class="cluster Cloud" id="L1"><rect rx="0" ry="0" x="236.98502349853516" y="8" width="497.7177200317383" height="415.83934020996094"></rect><g class="cluster-label" transform="translate(438.3576316833496, 6)"><foreignObject width="94.97250366210938" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span><b>公有云平台</b></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M341.8002243041992,150.3715057373047L345.9668909708659,150.3715057373047C350.13355763753253,150.3715057373047,358.4668909708659,150.3715057373047,368.3827253977458,150.3715057373047C378.29855982462567,150.3715057373047,389.79689534505206,150.3715057373047,395.5460631052653,150.3715057373047L401.2952308654785,150.3715057373047" id="L-E1-P" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-E1 LE-P" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M463.2253728943989,117.56679935734722L470.6516016388871,106.90447887017704C478.07783038337533,96.24215838300688,492.9302878723517,74.91751740866653,504.52318328350657,64.25519692149635C516.1160786946615,53.59287643432617,524.4494120279948,53.59287643432617,532.7827453613281,53.59287643432617C541.1160786946615,53.59287643432617,549.4494120279948,53.59287643432617,557.7827453613281,53.59287643432617C566.1160786946615,53.59287643432617,574.4494120279948,53.59287643432617,582.7827453613281,53.59287643432617C591.1160786946615,53.59287643432617,599.4494120279948,53.59287643432617,607.7827453613281,55.27325756703119C616.1160786946615,56.95363869973621,624.4494120279948,60.314400965146255,628.6160786946615,61.99478209785127L632.7827453613281,63.675163230556294" id="L-P-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-P LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M473.2877388000488,150.3715057373047L479.036906560262,150.3715057373047C484.7860743204753,150.3715057373047,496.2844098409017,150.3715057373047,506.20024426778156,150.3715057373047C516.1160786946615,150.3715057373047,524.4494120279948,150.3715057373047,532.7827453613281,150.3715057373047C541.1160786946615,150.3715057373047,549.4494120279948,150.3715057373047,557.7827453613281,150.3715057373047C566.1160786946615,150.3715057373047,574.4494120279948,150.3715057373047,582.7827453613281,150.3715057373047C591.1160786946615,150.3715057373047,599.4494120279948,150.3715057373047,608.3539144139401,156.1975348872738C617.2584167998854,162.0235640372429,626.7340882384427,173.67562233718112,631.4719239577214,179.5016514871502L636.2097596770001,185.32768063711933" id="L-P-A2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-P LE-A2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M453.90238570711904,184.94561674508668L462.8824456494872,204.36598636634827C471.8625055918554,223.78635598760988,489.8226254765918,262.6270952301331,502.96935208562655,282.04746485139464C516.1160786946615,301.46783447265625,524.4494120279948,301.46783447265625,532.7827453613281,301.46783447265625C541.1160786946615,301.46783447265625,549.4494120279948,301.46783447265625,557.7827453613281,301.46783447265625C566.1160786946615,301.46783447265625,574.4494120279948,301.46783447265625,582.7827453613281,301.46783447265625C591.1160786946615,301.46783447265625,599.4494120279948,301.46783447265625,607.7827453613281,306.4158589967676C616.1160786946615,311.36388352087897,624.4494120279948,321.25993256910164,628.6160786946615,326.207957093213L632.7827453613281,331.15598161732436" id="L-P-A3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-P LE-A3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M341.8002243041992,281.46783447265625L345.9668909708659,281.46783447265625C350.13355763753253,281.46783447265625,358.4668909708659,281.46783447265625,366.8002249399821,281.46783447265625C375.1335589090983,281.46783447265625,383.4668935139974,281.46783447265625,387.63356081644696,281.46783447265625L391.8002281188965,281.46783447265625" id="L-E2-ELB" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-E2 LE-ELB" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M456.524514428199,240.24229615005729L465.0675529170539,221.93049774793187C473.6105914059087,203.61869934580645,490.6966683836184,166.99510254155555,503.4063735391399,148.68330413943013C516.1160786946615,130.3715057373047,524.4494120279948,130.3715057373047,532.7827453613281,130.3715057373047C541.1160786946615,130.3715057373047,549.4494120279948,130.3715057373047,557.7827453613281,130.3715057373047C566.1160786946615,130.3715057373047,574.4494120279948,130.3715057373047,582.7827453613281,130.3715057373047C591.1160786946615,130.3715057373047,599.4494120279948,130.3715057373047,607.7827453613281,125.42348121319333C616.1160786946615,120.47545668908197,624.4494120279948,110.57940764085926,628.6160786946615,105.6313831167479L632.7827453613281,100.68335859263655" id="L-ELB-A1" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-ELB LE-A1" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M482.78274154663086,281.46783447265625L486.9494088490804,281.46783447265625C491.11607615152997,281.46783447265625,499.449410756429,281.46783447265625,507.78274472554523,281.46783447265625C516.1160786946615,281.46783447265625,524.4494120279948,281.46783447265625,532.7827453613281,281.46783447265625C541.1160786946615,281.46783447265625,549.4494120279948,281.46783447265625,557.7827453613281,281.46783447265625C566.1160786946615,281.46783447265625,574.4494120279948,281.46783447265625,582.7827453613281,281.46783447265625C591.1160786946615,281.46783447265625,599.4494120279948,281.46783447265625,608.3539144139401,275.64180532268716C617.2584167998854,269.815776172718,626.7340882384427,258.16371787277984,631.4719239577214,252.33768872281073L636.2097596770001,246.5116595728416" id="L-ELB-A2" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-ELB LE-A2" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M464.0746889562691,318.2389428906195L471.35936502377893,328.2401963714554C478.6440410912887,338.2414498522913,493.2133932263084,358.243956813963,504.66473596048496,368.2452102947989C516.1160786946615,378.24646377563477,524.4494120279948,378.24646377563477,532.7827453613281,378.24646377563477C541.1160786946615,378.24646377563477,549.4494120279948,378.24646377563477,557.7827453613281,378.24646377563477C566.1160786946615,378.24646377563477,574.4494120279948,378.24646377563477,582.7827453613281,378.24646377563477C591.1160786946615,378.24646377563477,599.4494120279948,378.24646377563477,607.7827453613281,376.56608264292976C616.1160786946615,374.8857015102247,624.4494120279948,371.5249392448147,628.6160786946615,369.8445581121097L632.7827453613281,368.16417697940466" id="L-ELB-A3" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-ELB LE-A3" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M89.48751449584961,150.3715057373047L95.23668225606282,150.3715057373047C100.98585001627605,150.3715057373047,112.48418553670247,150.3715057373047,125.56689516703288,150.3715057373047C138.64960479736328,150.3715057373047,153.31668853759766,150.3715057373047,167.98377227783203,150.3715057373047C182.6508560180664,150.3715057373047,197.31793975830078,150.3715057373047,208.81814829508463,150.3715057373047C220.3183568318685,150.3715057373047,228.6516901652018,150.3715057373047,236.98502349853516,150.3715057373047C245.3183568318685,150.3715057373047,253.6516901652018,150.3715057373047,257.81835683186847,150.3715057373047L261.98502349853516,150.3715057373047" id="L-U-E1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-U LE-E1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M98.9825210571289,281.46783447265625L103.14918772379558,281.46783447265625C107.31585439046223,281.46783447265625,115.64918772379558,281.46783447265625,127.14939626057942,281.46783447265625C138.64960479736328,281.46783447265625,153.31668853759766,281.46783447265625,167.98377227783203,281.46783447265625C182.6508560180664,281.46783447265625,197.31793975830078,281.46783447265625,208.81814829508463,281.46783447265625C220.3183568318685,281.46783447265625,228.6516901652018,281.46783447265625,236.98502349853516,281.46783447265625C245.3183568318685,281.46783447265625,253.6516901652018,281.46783447265625,257.81835683186847,281.46783447265625L261.98502349853516,281.46783447265625" id="L-Guest-E2" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-Guest LE-E2" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(167.98377227783203, 150.3715057373047)"><g class="label" transform="translate(-19.001251220703125, -14.400390625)"><foreignObject width="38.00250244140625" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>管理</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(167.98377227783203, 281.46783447265625)"><g class="label" transform="translate(-19.001251220703125, -14.400390625)"><foreignObject width="38.00250244140625" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>访问</span></div></foreignObject></g></g></g><g class="nodes"><g class="node default Cluster" id="flowchart-A1-110" label-offset-y="9.523573552207887" transform="translate(671.2427444458008, 79.18575286865234)"><path d="M 0,9.523573552207887 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 a 38.459999084472656,9.523573552207887 0,0,0 -76.91999816894531 0 l 0,53.324354802207885 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 l 0,-53.324354802207885" transform="translate(-38.459999084472656,-36.18575095331183)"></path><g class="label" style="" transform="translate(-30.959999084472656, -14.400390625)"><foreignObject width="61.91999816894531" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Apache</span></div></foreignObject></g></g><g class="node default Cluster" id="flowchart-A2-111" label-offset-y="9.523573552207887" transform="translate(671.2427444458008, 215.91967010498047)"><path d="M 0,9.523573552207887 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 a 38.459999084472656,9.523573552207887 0,0,0 -76.91999816894531 0 l 0,53.324354802207885 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 l 0,-53.324354802207885" transform="translate(-38.459999084472656,-36.18575095331183)"></path><g class="label" style="" transform="translate(-30.959999084472656, -14.400390625)"><foreignObject width="61.91999816894531" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Apache</span></div></foreignObject></g></g><g class="node default Cluster" id="flowchart-A3-112" label-offset-y="9.523573552207887" transform="translate(671.2427444458008, 352.6535873413086)"><path d="M 0,9.523573552207887 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 a 38.459999084472656,9.523573552207887 0,0,0 -76.91999816894531 0 l 0,53.324354802207885 a 38.459999084472656,9.523573552207887 0,0,0 76.91999816894531 0 l 0,-53.324354802207885" transform="translate(-38.459999084472656,-36.18575095331183)"></path><g class="label" style="" transform="translate(-30.959999084472656, -14.400390625)"><foreignObject width="61.91999816894531" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Apache</span></div></foreignObject></g></g><g class="node default Cluster" id="flowchart-P-109" label-offset-y="9.13645253433726" transform="translate(437.2914848327637, 150.3715057373047)"><path d="M 0,9.13645253433726 a 35.996253967285156,9.13645253433726 0,0,0 71.99250793457031 0 a 35.996253967285156,9.13645253433726 0,0,0 -71.99250793457031 0 l 0,52.93723378433726 a 35.996253967285156,9.13645253433726 0,0,0 71.99250793457031 0 l 0,-52.93723378433726" transform="translate(-35.996253967285156,-35.60506942650589)"></path><g class="label" style="" transform="translate(-28.496253967285156, -14.400390625)"><foreignObject width="56.99250793457031" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>跳板机</span></div></foreignObject></g></g><g class="node default Cluster" id="flowchart-E1-108" transform="translate(301.8926239013672, 150.3715057373047)"><rect rx="21.900390625" ry="21.900390625" x="-39.90760040283203" y="-21.900390625" width="79.81520080566406" height="43.80078125"></rect><g class="label" style="" transform="translate(-26.93250274658203, -14.400390625)"><foreignObject width="53.86500549316406" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>公网IP</span></div></foreignObject></g></g><g class="node default ELB" id="flowchart-ELB-114" transform="translate(437.2914848327637, 281.46783447265625)"><circle rx="0" ry="0" r="45.49125671386719" width="90.98251342773438" height="43.80078125"></circle><g class="label" style="" transform="translate(-37.99125671386719, -14.400390625)"><foreignObject width="75.98251342773438" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>负载均衡</span></div></foreignObject></g></g><g class="node default Cluster" id="flowchart-E2-113" transform="translate(301.8926239013672, 281.46783447265625)"><rect rx="21.900390625" ry="21.900390625" x="-39.90760040283203" y="-21.900390625" width="79.81520080566406" height="43.80078125"></rect><g class="label" style="" transform="translate(-26.93250274658203, -14.400390625)"><foreignObject width="53.86500549316406" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>公网IP</span></div></foreignObject></g></g><g class="node default User" id="flowchart-U-118" transform="translate(53.49126052856445, 150.3715057373047)"><rect class="basic label-container" style="" rx="5" ry="5" x="-35.996253967285156" y="-21.900390625" width="71.99250793457031" height="43.80078125"></rect><g class="label" style="" transform="translate(-28.496253967285156, -14.400390625)"><foreignObject width="56.99250793457031" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>管理员</span></div></foreignObject></g></g><g class="node default U1" id="flowchart-Guest-120" transform="translate(53.49126052856445, 281.46783447265625)"><rect class="basic label-container" style="" rx="5" ry="5" x="-45.49125671386719" y="-21.900390625" width="90.98251342773438" height="43.80078125"></rect><g class="label" style="" transform="translate(-37.99125671386719, -14.400390625)"><foreignObject width="75.98251342773438" height="28.80078125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>最终用户</span></div></foreignObject></g></g></g></g></g></svg></div><h3><a name="系统规划" class="md-header-anchor"></a><span>系统规划</span></h3><p><span>实验要求：使用做好的模板镜像，购买3台云主机，不用公网ip，部署 apache + php 的网站</span></p><figure><table><thead><tr><th style='text-align:center;' ><span>云主机名称</span></th><th style='text-align:center;' ><span>云主机IP地址</span></th><th style='text-align:center;' ><span>云主机配置</span></th></tr></thead><tbody><tr><td style='text-align:center;' ><span>web-0001</span></td><td style='text-align:center;' ><span>192.168.1.11</span></td><td style='text-align:center;' ><span>2CPU，4G内存</span></td></tr><tr><td style='text-align:center;' ><span>web-0002</span></td><td style='text-align:center;' ><span>192.168.1.12</span></td><td style='text-align:center;' ><span>2CPU，4G内存</span></td></tr><tr><td style='text-align:center;' ><span>web-0003</span></td><td style='text-align:center;' ><span>192.168.1.13</span></td><td style='text-align:center;' ><span>2CPU，4G内存</span></td></tr></tbody></table></figure><p><span>购买时注意选择自己做的模板镜像</span></p><p><img src="cloud_01.assets/image-20230606224950275.png" referrerpolicy="no-referrer" alt="image-20230606224950275"></p><p>&nbsp;</p><p><span>地址直接手动分配，直接写192.168.1.11</span></p><p><img src="cloud_01.assets/image-20230606225056297.png" referrerpolicy="no-referrer" alt="image-20230606225056297"></p><p><span>主机名直接写web，使用镜像密码</span></p><p><img src="cloud_01.assets/image-20230606225238800.png" referrerpolicy="no-referrer" alt="image-20230606225238800"></p><p>&nbsp;</p><h3><a name="安装部署" class="md-header-anchor"></a><span>安装部署</span></h3><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># mkdir website</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># cd website</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy website]<span class="cm-comment"># vim ansible.cfg</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[defaults]</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">inventory &nbsp; &nbsp; &nbsp; &nbsp; <span class="cm-operator">=</span> hostlist<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#主机清单文件</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">host_key_checking <span class="cm-operator">=</span> False<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#ssh时不用输入yes</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy website]<span class="cm-comment"># vim hostlist</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[web]</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.[11:13]</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy website]<span class="cm-comment"># vim install.yaml</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-attribute">---</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-attribute">-</span> name: web 集群安装</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  hosts: web</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  tasks:</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-attribute">-</span> name: 安装 apache 服务 </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  yum:</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  name: httpd,php</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  state: latest</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  update_cache: <span class="cm-builtin">yes</span><span class="cm-tab" role="presentation" cm-text="	"> </span>  <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#更新远程主机上yum软件包仓库缓存：yum clean all</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-attribute">-</span> name: 配置 httpd 服务 </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-builtin">service</span>:</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  name: httpd</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  state: started</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  enabled: <span class="cm-builtin">yes</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-attribute">-</span> name: 部署网站网页</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  unarchive:</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  src: website.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  dest: /var/www/html/</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  copy: <span class="cm-builtin">yes</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  owner: apache</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;  group: apache</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 上传第五阶段 public/website.tar.gz 到 website 目录下</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy website]<span class="cm-comment"># cp /root/5/public/website.tar.gz ./</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy website]<span class="cm-comment"># ansible-playbook install.yaml</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 903px;"></div><div class="CodeMirror-gutters" style="display: none; height: 903px;"></div></div></div></pre><p><span>通过华为云负载均衡部署访问</span></p><p><img src="cloud_01.assets/image-20230606231158267.png" referrerpolicy="no-referrer" alt="image-20230606231158267"></p><p><img src="cloud_01.assets/image-20230606231213644.png" referrerpolicy="no-referrer" alt="image-20230606231213644"></p><p><img src="cloud_01.assets/image-20230606231228970.png" referrerpolicy="no-referrer" alt="image-20230606231228970"></p><p><img src="cloud_01.assets/image-20230606231308739.png" referrerpolicy="no-referrer" alt="image-20230606231308739"></p><p><img src="cloud_01.assets/image-20230606231321555.png" referrerpolicy="no-referrer" alt="image-20230606231321555"></p><p><span>点击负载均衡，配置监听器</span></p><p><img src="cloud_01.assets/image-20230606231347901.png" referrerpolicy="no-referrer" alt="image-20230606231347901"></p><p><img src="cloud_01.assets/image-20230606231405559.png" referrerpolicy="no-referrer" alt="image-20230606231405559"></p><p><img src="cloud_01.assets/image-20230606231428832.png" referrerpolicy="no-referrer" alt="image-20230606231428832"></p><p><img src="cloud_01.assets/image-20230606231456132.png" referrerpolicy="no-referrer" alt="image-20230606231456132"></p><p><img src="cloud_01.assets/image-20230606231523975.png" referrerpolicy="no-referrer" alt="image-20230606231523975"></p><p><img src="cloud_01.assets/image-20230606231547223.png" referrerpolicy="no-referrer" alt="image-20230606231547223"></p><p><img src="cloud_01.assets/image-20230606231602168.png" referrerpolicy="no-referrer" alt="image-20230606231602168"></p><p><span>通过浏览器查看结果，静态页面：通过负载均衡的IP进行访问</span></p><p><img src="cloud_01.assets/image-20230606231855319.png" referrerpolicy="no-referrer" alt="image-20230606231855319"></p><p><span>php的动态页面也可以查看：负载均衡IP/info.php</span></p><h2><a name="elk架构图例" class="md-header-anchor"></a><span>ELK架构图例</span></h2><div class="md-diagram-panel"><svg id="mermaidChart4" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="506.9990234375" style="max-width: 985.48px; height: 546.999px;" viewBox="0 0 985.4799194335938 506.9990234375" class="md-require-zoom-fix"><style>#mermaidChart4{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;fill:#333333;}#mermaidChart4 .error-icon{fill:hsl(60,100%,100%);}#mermaidChart4 .error-text{fill:rgb(0,0,0);stroke:rgb(0,0,0);}#mermaidChart4 .edge-thickness-normal{stroke-width:2px;}#mermaidChart4 .edge-thickness-thick{stroke-width:3.5px;}#mermaidChart4 .edge-pattern-solid{stroke-dasharray:0;}#mermaidChart4 .edge-pattern-dashed{stroke-dasharray:3;}#mermaidChart4 .edge-pattern-dotted{stroke-dasharray:2;}#mermaidChart4 .marker{fill:#000000;}#mermaidChart4 .marker.cross{stroke:#000000;}#mermaidChart4 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;}#mermaidChart4 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaidChart4 .label text{fill:#333;}#mermaidChart4 .node rect,#mermaidChart4 .node circle,#mermaidChart4 .node ellipse,#mermaidChart4 .node polygon,#mermaidChart4 .node path{fill:#ECECFF;stroke:hsl(240,60%,86.2745098039%);stroke-width:1px;}#mermaidChart4 .node .label{text-align:center;}#mermaidChart4 .node.clickable{cursor:pointer;}#mermaidChart4 .arrowheadPath{fill:undefined;}#mermaidChart4 .edgePath .path{stroke:#000000;stroke-width:1.5px;}#mermaidChart4 .flowchart-link{stroke:#000000;fill:none;}#mermaidChart4 .edgeLabel{background-color:#f4f4f4;text-align:center;}#mermaidChart4 .edgeLabel rect{opacity:0.5;background-color:#f4f4f4;fill:#f4f4f4;}#mermaidChart4 .cluster rect{fill:hsl(60,100%,100%);stroke:hsl(60,60%,90%);stroke-width:1px;}#mermaidChart4 .cluster text{fill:rgb(0,0,0);}#mermaidChart4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(60,100%,100%);border:1px solid undefined;border-radius:2px;pointer-events:none;z-index:100;}#mermaidChart4:root{--mermaid-font-family:sans-serif;}#mermaidChart4:root{--mermaid-alt-font-family:sans-serif;}#mermaidChart4 .APP &gt; *{color:#0000ff !important;fill:#99ff99 !important;}#mermaidChart4 .APP tspan{fill:#0000ff !important;}#mermaidChart4 .ZONE &gt; *{fill:#ffffc0 !important;color:#ff00ff !important;}#mermaidChart4 .ZONE tspan{fill:#ff00ff !important;}#mermaidChart4 flowchart-v2{fill:apa;}</style><g transform="translate(0, 2)"><marker id="flowchart-pointEnd" class="marker flowchart" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-pointStart" class="marker flowchart" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-circleEnd" class="marker flowchart" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-circleStart" class="marker flowchart" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-crossEnd" class="marker cross flowchart" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-crossStart" class="marker cross flowchart" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><g class="root"><g class="clusters"><g class="cluster ZONE" id="Z3"><rect rx="0" ry="0" x="726.6773948669434" y="8" width="129.86749267578125" height="488.9990234375"></rect><g class="cluster-label" transform="translate(736.1148872375488, 6)"><foreignObject width="110.99250793457031" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Elasticsearch</span></div></foreignObject></g></g><g class="cluster ZONE" id="Z2"><rect rx="0" ry="0" x="337.45238494873047" y="24.89990234375" width="339.2250099182129" height="435.19921875"></rect><g class="cluster-label" transform="translate(470.74988746643066, 22.89990234375)"><foreignObject width="72.6300048828125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Logstash</span></div></foreignObject></g></g><g class="cluster ZONE" id="Z1"><rect rx="0" ry="0" x="8" y="101.7998046875" width="279.45238494873047" height="301.3994140625"></rect><g class="cluster-label" transform="translate(98.14744186401367, 99.7998046875)"><foreignObject width="99.15750122070312" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web cluster</span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M119.6324462890625,158.69970703125L123.79911295572917,158.69970703125C127.96577962239583,158.69970703125,136.29911295572916,158.69970703125,144.6324462890625,158.69970703125C152.96577962239584,158.69970703125,161.29911295572916,158.69970703125,165.46577962239584,158.69970703125L169.6324462890625,158.69970703125" id="L-H1-F1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H1 LE-F1" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M119.6324462890625,252.49951171875L123.79911295572917,252.49951171875C127.96577962239583,252.49951171875,136.29911295572916,252.49951171875,144.6324462890625,252.49951171875C152.96577962239584,252.49951171875,161.29911295572916,252.49951171875,165.46577962239584,252.49951171875L169.6324462890625,252.49951171875" id="L-H2-F2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H2 LE-F2" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M119.6324462890625,346.29931640625L123.79911295572917,346.29931640625C127.96577962239583,346.29931640625,136.29911295572916,346.29931640625,144.6324462890625,346.29931640625C152.96577962239584,346.29931640625,161.29911295572916,346.29931640625,165.46577962239584,346.29931640625L169.6324462890625,346.29931640625" id="L-H3-F3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H3 LE-F3" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M262.45238494873047,158.69970703125L266.61905161539715,158.69970703125C270.7857182820638,158.69970703125,279.11905161539715,158.69970703125,287.45238494873047,158.69970703125C295.7857182820638,158.69970703125,304.11905161539715,158.69970703125,312.45238494873047,158.69970703125C320.7857182820638,158.69970703125,329.11905161539715,158.69970703125,339.90641104241814,170.06302689919588C350.69377046943913,181.42634676714178,363.93515599014773,204.1529865030336,370.5558487505021,215.51630637097946L377.1765415108564,226.87962623892537" id="L-F1-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F1 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M262.45238494873047,252.49951171875L266.61905161539715,252.49951171875C270.7857182820638,252.49951171875,279.11905161539715,252.49951171875,287.45238494873047,252.49951171875C295.7857182820638,252.49951171875,304.11905161539715,252.49951171875,312.45238494873047,252.49951171875C320.7857182820638,252.49951171875,329.11905161539715,252.49951171875,337.4523852666219,252.49951171875C345.7857189178467,252.49951171875,354.1190528869629,252.49951171875,358.285719871521,252.49951171875L362.4523868560791,252.49951171875" id="L-F2-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F2 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M262.45238494873047,346.29931640625L266.61905161539715,346.29931640625C270.7857182820638,346.29931640625,279.11905161539715,346.29931640625,287.45238494873047,346.29931640625C295.7857182820638,346.29931640625,304.11905161539715,346.29931640625,312.45238494873047,346.29931640625C320.7857182820638,346.29931640625,329.11905161539715,346.29931640625,339.90641104241814,334.9359965383041C350.69377046943913,323.57267667035825,363.93515599014773,300.84603693446644,370.5558487505021,289.48271706652054L377.1765415108564,278.11939719857463" id="L-F3-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F3 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M421.75489234924316,252.49951171875L425.92155933380127,252.49951171875C430.0882263183594,252.49951171875,438.4215602874756,252.49951171875,446.7548939387004,252.49951171875C455.0882275899251,252.49951171875,463.4215609232585,252.49951171875,467.5882275899251,252.49951171875L471.7548942565918,252.49951171875" id="L-A1-A2" class=" edge-thickness-thick edge-pattern-solid flowchart-link LS-A1 LE-A2" style="stroke-width: 3.5px;fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M530.0673942565918,252.49951171875L534.2340609232584,252.49951171875C538.4007275899252,252.49951171875,546.7340609232584,252.49951171875,555.0673942565918,252.49951171875C563.4007275899252,252.49951171875,571.7340609232584,252.49951171875,575.9007275899252,252.49951171875L580.0673942565918,252.49951171875" id="L-A2-A3" class=" edge-thickness-thick edge-pattern-solid flowchart-link LS-A2 LE-A3" style="stroke-width: 3.5px;fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M626.9121434490463,218.43894813915745L635.2063520186958,192.84910717325621C643.5005605883454,167.25926620735495,660.0889777276443,116.07958427555248,672.5498529639605,90.48974330965125C685.0107282002767,64.89990234375,693.34406153361,64.89990234375,701.6773948669434,64.89990234375C710.0107282002767,64.89990234375,718.34406153361,64.89990234375,726.6773948669434,64.89990234375C735.0107282002767,64.89990234375,743.34406153361,64.89990234375,747.5107282002767,64.89990234375L751.6773948669434,64.89990234375" id="L-A3-ES1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M635.3485631831858,222.45492979981293L642.2367017971454,211.82905933838575C649.124840411105,201.20318887695862,662.9011176390242,179.9514479541043,673.9559229196504,169.32557749267716C685.0107282002767,158.69970703125,693.34406153361,158.69970703125,701.6773948669434,158.69970703125C710.0107282002767,158.69970703125,718.34406153361,158.69970703125,726.6773948669434,158.69970703125C735.0107282002767,158.69970703125,743.34406153361,158.69970703125,747.5107282002767,158.69970703125L751.6773948669434,158.69970703125" id="L-A3-ES2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M651.6773948669434,252.49951171875L655.84406153361,252.49951171875C660.0107282002767,252.49951171875,668.34406153361,252.49951171875,676.6773948669434,252.49951171875C685.0107282002767,252.49951171875,693.34406153361,252.49951171875,701.6773948669434,252.49951171875C710.0107282002767,252.49951171875,718.34406153361,252.49951171875,726.6773948669434,252.49951171875C735.0107282002767,252.49951171875,743.34406153361,252.49951171875,747.5107282002767,252.49951171875L751.6773948669434,252.49951171875" id="L-A3-ES3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M635.3485631831858,282.54409363768707L642.2367017971454,293.1699640991142C649.124840411105,303.7958345605414,662.9011176390242,325.0475754833957,673.9559229196504,335.67344594482284C685.0107282002767,346.29931640625,693.34406153361,346.29931640625,701.6773948669434,346.29931640625C710.0107282002767,346.29931640625,718.34406153361,346.29931640625,726.6773948669434,346.29931640625C735.0107282002767,346.29931640625,743.34406153361,346.29931640625,747.5107282002767,346.29931640625L751.6773948669434,346.29931640625" id="L-A3-ES4" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES4" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M626.9121434490463,286.56007529834255L635.2063520186958,312.1499162642438C643.5005605883454,337.739757230145,660.0889777276443,388.91943916194754,672.5498529639605,414.5092801278488C685.0107282002767,440.09912109375,693.34406153361,440.09912109375,701.6773948669434,440.09912109375C710.0107282002767,440.09912109375,718.34406153361,440.09912109375,726.6773948669434,440.09912109375C735.0107282002767,440.09912109375,743.34406153361,440.09912109375,747.5107282002767,440.09912109375L751.6773948669434,440.09912109375" id="L-A3-ES5" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES5" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M831.5448875427246,64.89990234375L835.7115542093912,64.89990234375C839.878220876058,64.89990234375,848.2115542093912,64.89990234375,856.5448875427246,64.89990234375C864.878220876058,64.89990234375,873.2115542093912,64.89990234375,885.5503459522944,90.33435899640175C897.8891376951975,115.76881564905348,914.2333878476705,166.637728954357,922.4055129239069,192.07218560700872L930.5776380001435,217.50664225966048" id="L-ES1-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES1 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M831.5448875427246,158.69970703125L835.7115542093912,158.69970703125C839.878220876058,158.69970703125,848.2115542093912,158.69970703125,856.5448875427246,158.69970703125C864.878220876058,158.69970703125,873.2115542093912,158.69970703125,883.6445545653147,168.7757867966212C894.0775549212382,178.8518665619924,906.6102222997519,199.0040260927348,912.8765559890086,209.08010585810598L919.1428896782654,219.15618562347717" id="L-ES2-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES2 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M831.5448875427246,252.49951171875L835.7115542093912,252.49951171875C839.878220876058,252.49951171875,848.2115542093912,252.49951171875,856.5448875427246,252.49951171875C864.878220876058,252.49951171875,873.2115542093912,252.49951171875,881.5448875427246,252.49951171875C889.878220876058,252.49951171875,898.2115542093912,252.49951171875,902.378220876058,252.49951171875L906.5448875427246,252.49951171875" id="L-ES3-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES3 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M831.5448875427246,346.29931640625L835.7115542093912,346.29931640625C839.878220876058,346.29931640625,848.2115542093912,346.29931640625,856.5448875427246,346.29931640625C864.878220876058,346.29931640625,873.2115542093912,346.29931640625,883.6445545653147,336.22323664087884C894.0775549212382,326.1471568755076,906.6102222997519,305.99499734476524,912.8765559890086,295.9189175793941L919.1428896782654,285.84283781402286" id="L-ES4-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES4 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M831.5448875427246,440.09912109375L835.7115542093912,440.09912109375C839.878220876058,440.09912109375,848.2115542093912,440.09912109375,856.5448875427246,440.09912109375C864.878220876058,440.09912109375,873.2115542093912,440.09912109375,885.5503459522944,414.66466444109824C897.8891376951975,389.2302077884465,914.2333878476705,338.361294483143,922.4055129239069,312.92683783049125L930.5776380001435,287.4923811778395" id="L-ES5-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES5 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default APP" id="flowchart-ES1-159" transform="translate(791.611141204834, 64.89990234375)"><rect class="basic label-container" style="" rx="5" ry="5" x="-39.933746337890625" y="-21.89990234375" width="79.86749267578125" height="43.7998046875"></rect><g class="label" style="" transform="translate(-32.433746337890625, -14.39990234375)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0001</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-ES2-160" transform="translate(791.611141204834, 158.69970703125)"><rect class="basic label-container" style="" rx="5" ry="5" x="-39.933746337890625" y="-21.89990234375" width="79.86749267578125" height="43.7998046875"></rect><g class="label" style="" transform="translate(-32.433746337890625, -14.39990234375)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0002</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-ES3-161" transform="translate(791.611141204834, 252.49951171875)"><rect class="basic label-container" style="" rx="5" ry="5" x="-39.933746337890625" y="-21.89990234375" width="79.86749267578125" height="43.7998046875"></rect><g class="label" style="" transform="translate(-32.433746337890625, -14.39990234375)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0003</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-ES4-162" transform="translate(791.611141204834, 346.29931640625)"><rect class="basic label-container" style="" rx="5" ry="5" x="-39.933746337890625" y="-21.89990234375" width="79.86749267578125" height="43.7998046875"></rect><g class="label" style="" transform="translate(-32.433746337890625, -14.39990234375)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0004</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-ES5-163" transform="translate(791.611141204834, 440.09912109375)"><rect class="basic label-container" style="" rx="5" ry="5" x="-39.933746337890625" y="-21.89990234375" width="79.86749267578125" height="43.7998046875"></rect><g class="label" style="" transform="translate(-32.433746337890625, -14.39990234375)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0005</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-A3-158" transform="translate(615.8723945617676, 252.49951171875)"><circle rx="0" ry="0" r="35.80500030517578" width="71.61000061035156" height="43.7998046875"></circle><g class="label" style="" transform="translate(-28.30500030517578, -14.39990234375)"><foreignObject width="56.61000061035156" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>output</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-A2-157" transform="translate(500.9111442565918, 252.49951171875)"><circle rx="0" ry="0" r="29.15625" width="58.3125" height="43.7998046875"></circle><g class="label" style="" transform="translate(-21.65625, -14.39990234375)"><foreignObject width="43.3125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filter</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-A1-156" transform="translate(392.10363960266113, 252.49951171875)"><circle rx="0" ry="0" r="29.65125274658203" width="59.30250549316406" height="43.7998046875"></circle><g class="label" style="" transform="translate(-22.15125274658203, -14.39990234375)"><foreignObject width="44.30250549316406" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>input</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-F1-148" transform="translate(216.04241561889648, 158.69970703125)"><rect rx="21.89990234375" ry="21.89990234375" x="-46.40997314453125" y="-21.89990234375" width="92.8199462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-33.43499755859375, -14.39990234375)"><foreignObject width="66.8699951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-H1-147" transform="translate(76.31622314453125, 158.69970703125)"><rect rx="21.89990234375" ry="21.89990234375" x="-43.31622314453125" y="-21.89990234375" width="86.6324462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-30.34124755859375, -14.39990234375)"><foreignObject width="60.6824951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>apache</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-F2-150" transform="translate(216.04241561889648, 252.49951171875)"><rect rx="21.89990234375" ry="21.89990234375" x="-46.40997314453125" y="-21.89990234375" width="92.8199462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-33.43499755859375, -14.39990234375)"><foreignObject width="66.8699951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-H2-149" transform="translate(76.31622314453125, 252.49951171875)"><rect rx="21.89990234375" ry="21.89990234375" x="-43.31622314453125" y="-21.89990234375" width="86.6324462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-30.34124755859375, -14.39990234375)"><foreignObject width="60.6824951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>apache</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-F3-152" transform="translate(216.04241561889648, 346.29931640625)"><rect rx="21.89990234375" ry="21.89990234375" x="-46.40997314453125" y="-21.89990234375" width="92.8199462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-33.43499755859375, -14.39990234375)"><foreignObject width="66.8699951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-H3-151" transform="translate(76.31622314453125, 346.29931640625)"><rect rx="21.89990234375" ry="21.89990234375" x="-43.31622314453125" y="-21.89990234375" width="86.6324462890625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-30.34124755859375, -14.39990234375)"><foreignObject width="60.6824951171875" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>apache</span></div></foreignObject></g></g><g class="node default APP" id="flowchart-K-170" label-offset-y="9.050832985743252" transform="translate(942.0123863220215, 252.49951171875)"><path d="M 0,9.050832985743252 a 35.467498779296875,9.050832985743252 0,0,0 70.93499755859375 0 a 35.467498779296875,9.050832985743252 0,0,0 -70.93499755859375 0 l 0,52.850637673243256 a 35.467498779296875,9.050832985743252 0,0,0 70.93499755859375 0 l 0,-52.850637673243256" transform="translate(-35.467498779296875,-35.47615182236488)"></path><g class="label" style="" transform="translate(-27.967498779296875, -14.39990234375)"><foreignObject width="55.93499755859375" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>kibana</span></div></foreignObject></g></g></g></g></g></svg></div><h2><a name="elasticsearch-安装" class="md-header-anchor"></a><span>Elasticsearch 安装</span></h2><h3><a name="在跳板机上配置-yum-仓库" class="md-header-anchor"></a><span>在跳板机上配置 yum 仓库</span></h3><p><span>拷贝第五阶段elk的软件包到自定义 yum 仓库</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># cp -r 5/elk /var/ftp/localrepo/</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># createrepo --update /var/ftp/localrepo/</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 51px;"></div><div class="CodeMirror-gutters" style="display: none; height: 51px;"></div></div></div></pre><h3><a name="购买云主机" class="md-header-anchor"></a><span>购买云主机 </span></h3><figure><table><thead><tr><th><span>主机</span></th><th><span>IP地址</span></th><th><span>配置</span></th></tr></thead><tbody><tr><td><span>es-0001</span></td><td><span>192.168.1.21</span></td><td><span>最低配置2核4G</span></td></tr><tr><td><span>es-0002</span></td><td><span>192.168.1.22</span></td><td><span>最低配置2核4G</span></td></tr><tr><td><span>es-0003</span></td><td><span>192.168.1.23</span></td><td><span>最低配置2核4G</span></td></tr><tr><td><span>es-0004</span></td><td><span>192.168.1.24</span></td><td><span>最低配置2核4G</span></td></tr><tr><td><span>es-0005</span></td><td><span>192.168.1.25</span></td><td><span>最低配置2核4G</span></td></tr></tbody></table></figure><h3><a name="单机安装" class="md-header-anchor"></a><span>单机安装</span></h3><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># ssh 192.168.1.21</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/hosts<span class="cm-tab" role="presentation" cm-text="	">    </span>#配置主机名解析，让各个节点之间能够互相通讯</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.21<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0001</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.22<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.23<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.24<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0004</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.25<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0005</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># yum install -y java-1.8.0-openjdk elasticsearch</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">55</span>:  network.host: <span class="cm-number">0</span>.0.0.0<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#监听地址，让所有主机都可以访问</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl enable --now elasticsearch</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># ss -antlp <span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#监听端口9200,9300</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl http://127.0.0.1:9200/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"name"</span> : <span class="cm-string">"War Eagle"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"cluster_name"</span> : <span class="cm-string">"elasticsearch"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"version"</span> : {</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"number"</span> : <span class="cm-string">"2.3.4"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"build_hash"</span> : <span class="cm-string">"e455fd0c13dceca8dbbdbb1665d068ae55dabe3f"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"build_timestamp"</span> : <span class="cm-string">"2016-06-30T11:24:31Z"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"build_snapshot"</span> : <span class="cm-atom">false</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"lucene_version"</span> : <span class="cm-string">"5.5.0"</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  },</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"tagline"</span> : <span class="cm-string">"You Know, for Search"</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 679px;"></div><div class="CodeMirror-gutters" style="display: none; height: 679px;"></div></div></div></pre><h3><a name="集群安装" class="md-header-anchor"></a><span>集群安装</span></h3><ul><li><span>在所有主机安装 Elasticsearch</span></li></ul><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded md-focus" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap CodeMirror-focused" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 345.833px; left: 773.611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/hosts</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.21<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0001</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.22<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.23<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.24<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0004</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.25<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0005</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># yum install -y java-1.8.0-openjdk elasticsearch</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">17</span>:  cluster.name: my-es<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#集群名称</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">23</span>: &nbsp;<span class="cm-builtin">node</span>.name: es-0001 <span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#本机主机名，自己是谁</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">55</span>:  network.host: <span class="cm-number">0</span>.0.0.0<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-comment">#监听地址，让所有主机都可以访问</span></span></pre><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">68</span>:  discovery.zen.ping.unicast.hosts: [<span class="cm-string">"es-0001"</span>, <span class="cm-string">"es-0002"</span>]<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#指定集群的成员，不需要配置所有成员，三个成员即可，集群在启动时，其他节点会首先向这两个节点寻求通讯地址，所以，这里两个节点的Elasticsearch服务必须首先启动</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl restart elasticsearch</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># ss -antlp</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">使用playbook安装es集群</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># cd 5/public/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy public]<span class="cm-comment"># tar -xf essetup.tar.gz  -C /root/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy public]<span class="cm-comment"># cd /root/essetup/</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy essetup]<span class="cm-comment"># ansible-playbook essetup.yml </span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">es-0001主机验证，查看集群的状态</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># ssh 192.168.1.21</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl http://es-0001:9200/_cluster/health?pretty</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"cluster_name"</span> : <span class="cm-string">"my-es"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"status"</span> : <span class="cm-string">"green"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"timed_out"</span> : <span class="cm-atom">false</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_nodes"</span> : <span class="cm-number">5</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_data_nodes"</span> : <span class="cm-number">5</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; ... ...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 989px;"></div><div class="CodeMirror-gutters" style="display: none; height: 989px;"></div></div></div></pre><h4><a name="head插件安装" class="md-header-anchor"></a><span>head插件安装</span></h4><p><span>插件原理图</span></p><div class="md-diagram-panel"><svg id="mermaidChart5" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="200.60009765625" style="max-width: 736.67px; height: 240.6px;" viewBox="0 0 736.6701049804688 200.60009765625" class="md-require-zoom-fix"><style>#mermaidChart5{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;fill:#333333;}#mermaidChart5 .error-icon{fill:hsl(60,100%,100%);}#mermaidChart5 .error-text{fill:rgb(0,0,0);stroke:rgb(0,0,0);}#mermaidChart5 .edge-thickness-normal{stroke-width:2px;}#mermaidChart5 .edge-thickness-thick{stroke-width:3.5px;}#mermaidChart5 .edge-pattern-solid{stroke-dasharray:0;}#mermaidChart5 .edge-pattern-dashed{stroke-dasharray:3;}#mermaidChart5 .edge-pattern-dotted{stroke-dasharray:2;}#mermaidChart5 .marker{fill:#000000;}#mermaidChart5 .marker.cross{stroke:#000000;}#mermaidChart5 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.19444392014435px;}#mermaidChart5 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaidChart5 .label text{fill:#333;}#mermaidChart5 .node rect,#mermaidChart5 .node circle,#mermaidChart5 .node ellipse,#mermaidChart5 .node polygon,#mermaidChart5 .node path{fill:#ECECFF;stroke:hsl(240,60%,86.2745098039%);stroke-width:1px;}#mermaidChart5 .node .label{text-align:center;}#mermaidChart5 .node.clickable{cursor:pointer;}#mermaidChart5 .arrowheadPath{fill:undefined;}#mermaidChart5 .edgePath .path{stroke:#000000;stroke-width:1.5px;}#mermaidChart5 .flowchart-link{stroke:#000000;fill:none;}#mermaidChart5 .edgeLabel{background-color:#f4f4f4;text-align:center;}#mermaidChart5 .edgeLabel rect{opacity:0.5;background-color:#f4f4f4;fill:#f4f4f4;}#mermaidChart5 .cluster rect{fill:hsl(60,100%,100%);stroke:hsl(60,60%,90%);stroke-width:1px;}#mermaidChart5 .cluster text{fill:rgb(0,0,0);}#mermaidChart5 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(60,100%,100%);border:1px solid undefined;border-radius:2px;pointer-events:none;z-index:100;}#mermaidChart5:root{--mermaid-font-family:sans-serif;}#mermaidChart5:root{--mermaid-alt-font-family:sans-serif;}#mermaidChart5 .Server &gt; *{fill:#d099ff !important;}#mermaidChart5 .Server tspan{!important;}#mermaidChart5 .ES &gt; *{color:#000000 !important;fill:#11ccee !important;}#mermaidChart5 .ES tspan{fill:#000000 !important;}#mermaidChart5 .U &gt; *{fill:#a08080 !important;color:#ffffff !important;stroke:#555555 !important;stroke-width:4px !important;}#mermaidChart5 .U tspan{fill:#ffffff !important;}#mermaidChart5 .ELB &gt; *{fill:#a0f0a0 !important;color:#0000ff !important;stroke:#f66 !important;stroke-width:2px !important;}#mermaidChart5 .ELB tspan{fill:#0000ff !important;}#mermaidChart5 .Cluster &gt; *{fill:#ffffc0 !important;color:#ff00ff !important;stroke-width:4px !important;}#mermaidChart5 .Cluster tspan{fill:#ff00ff !important;}#mermaidChart5 flowchart-v2{fill:apa;}</style><g transform="translate(0, 2)"><marker id="flowchart-pointEnd" class="marker flowchart" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-pointStart" class="marker flowchart" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-circleEnd" class="marker flowchart" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-circleStart" class="marker flowchart" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-crossEnd" class="marker cross flowchart" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-crossStart" class="marker cross flowchart" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><g class="root"><g class="clusters"><g class="cluster Cluster" id="C1"><rect rx="0" ry="0" x="111.00250244140625" y="8" width="617.6675796508789" height="182.60009765625"></rect><g class="cluster-label" transform="translate(391.34003829956055, 6)"><foreignObject width="56.99250793457031" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>华为云</span></div></foreignObject></g></g><g class="cluster ES" id="Host"><rect rx="0" ry="0" x="288.5274963378906" y="28" width="415.14258575439453" height="142.60009765625"></rect><g class="cluster-label" transform="translate(463.66504287719727, 26)"><foreignObject width="64.86749267578125" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>es-0001</span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M419.7575149536133,99.300048828125L430.2560577392578,99.300048828125C440.75460052490234,99.300048828125,461.7516860961914,99.300048828125,493.8262761433919,99.300048828125C525.9008661905924,99.300048828125,569.0529607137045,99.300048828125,590.6290079752604,99.300048828125L612.2050552368164,99.300048828125" id="L-W-S" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-W LE-S" style="fill:none;"></path><path d="M238.52749633789062,99.300048828125L242.69416300455728,99.300048828125C246.86082967122397,99.300048828125,255.19416300455728,99.300048828125,263.5274963378906,99.300048828125C271.86082967122394,99.300048828125,280.1941630045573,99.300048828125,288.5274963378906,99.300048828125C296.86082967122394,99.300048828125,305.1941630045573,99.300048828125,309.36082967122394,99.300048828125L313.5274963378906,99.300048828125" id="L-ELB-W" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ELB LE-W" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M61.00250244140625,99.300048828125L65.16916910807292,99.300048828125C69.33583577473958,99.300048828125,77.66916910807292,99.300048828125,86.00250244140625,99.300048828125C94.33583577473958,99.300048828125,102.66916910807292,99.300048828125,111.00250244140625,99.300048828125C119.33583577473958,99.300048828125,127.66916910807292,99.300048828125,131.8358357747396,99.300048828125L136.00250244140625,99.300048828125" id="L-U1-ELB" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-U1 LE-ELB" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path></g><g class="edgeLabels"><g class="edgeLabel" transform="translate(482.74877166748047, 99.300048828125)"><g class="label" transform="translate(-37.99125671386719, -28.800048828125)"><foreignObject width="75.98251342773438" height="57.60009765625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Apache<br>反向代理</span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default ELB" id="flowchart-ELB-182" transform="translate(187.26499938964844, 99.300048828125)"><circle rx="0" ry="0" r="51.26249694824219" width="102.52499389648438" height="72.60009765625"></circle><g class="label" style="" transform="translate(-43.76249694824219, -28.800048828125)"><foreignObject width="87.52499389648438" height="57.60009765625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>华为云ELB<br>公网IP</span></div></foreignObject></g></g><g class="node default Server" id="flowchart-S-181" transform="translate(612.2050552368164, 99.300048828125)"><polygon points="18.1500244140625,0 114.780029296875,0 132.9300537109375,-36.300048828125 114.780029296875,-72.60009765625 18.1500244140625,-72.60009765625 0,-36.300048828125" class="label-container" transform="translate(-66.46502685546875,36.300048828125)"></polygon><g class="label" style="" transform="translate(-40.81500244140625, -28.800048828125)"><foreignObject width="81.6300048828125" height="57.60009765625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>ES服务<br>Port:9200</span></div></foreignObject></g></g><g class="node default Server" id="flowchart-W-180" transform="translate(366.64250564575195, 99.300048828125)"><rect rx="36.300048828125" ry="36.300048828125" x="-53.115013122558594" y="-36.300048828125" width="106.23002624511719" height="72.60009765625"></rect><g class="label" style="" transform="translate(-36.540000915527344, -28.800048828125)"><foreignObject width="73.08000183105469" height="57.60009765625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web服务<br>Port:80</span></div></foreignObject></g></g><g class="node default U" id="flowchart-U1-184" transform="translate(34.501251220703125, 99.300048828125)"><rect class="basic label-container" style="" rx="5" ry="5" x="-26.501251220703125" y="-21.89990234375" width="53.00250244140625" height="43.7998046875"></rect><g class="label" style="" transform="translate(-19.001251220703125, -14.39990234375)"><foreignObject width="38.00250244140625" height="28.7998046875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>用户</span></div></foreignObject></g></g></g></g></g></svg></div><ul><li><span>在 es-0001 上安装 apache，并部署 head 插件</span></li></ul><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@ecs-proxy ~]<span class="cm-comment"># scp /root/5/public/head.tar.gz 192.168.1.21:/root/<span class="cm-tab" role="presentation" cm-text="	">  </span>#拷贝 head.tar.gz 到 es-0001主机</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># yum install -y httpd</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl enable --now httpd</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># tar -xf head.tar.gz -C /var/www/html </span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 130px;"></div><div class="CodeMirror-gutters" style="display: none; height: 130px;"></div></div></div></pre><ul><li><span>通过 ELB 映射 80 端口，发布 es-0001 的 web 服务到互联网</span></li></ul><p><img src="cloud_01.assets/image-20230607000055913.png" referrerpolicy="no-referrer" alt="image-20230607000055913"></p><p><img src="cloud_01.assets/image-20230607000114152.png" referrerpolicy="no-referrer" alt="image-20230607000114152"></p><p><img src="cloud_01.assets/image-20230607000131404.png" referrerpolicy="no-referrer" alt="image-20230607000131404"></p><p><img src="cloud_01.assets/image-20230607000203331.png" referrerpolicy="no-referrer" alt="image-20230607000203331"></p><p><img src="cloud_01.assets/image-20230607000228008.png" referrerpolicy="no-referrer" alt="image-20230607000228008"></p><p><img src="cloud_01.assets/image-20230607000320666.png" referrerpolicy="no-referrer" alt="image-20230607000320666"></p><p><span>此时在浏览器中看到的结果为插件已经访，但是集群未连接，插件只是一个页面，想让插件管理集群，需要让插件和集群能够通过网络通信，这样才能管理集群</span></p><ul><li><span>es-0001 访问授权</span></li></ul><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/httpd/conf/httpd.conf</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 配置文件最后追加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyRequests off</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPass /es/ http://127.0.0.1:9200/<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#访问/es/时，把请求转给9200</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPassReverse /es/ http://127.0.0.1:9200/</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;Location ~ <span class="cm-string">"^/es(-head)?/"</span>&gt;<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证配置</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Options None</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthType Basic<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证类型</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthName <span class="cm-string">"Elasticsearch Admin"</span><span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证名称</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthUserFile <span class="cm-string">"/var/www/webauth"</span><span class="cm-tab" role="presentation" cm-text="	"> </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证文件，存放用户名和密码的文件</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Require valid-user</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;/Location&gt;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># htpasswd -cm /var/www/webauth admin<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#c：创建文件；m：使用 MD5 加密</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">New password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Re-type new password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span> <span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Adding password <span class="cm-keyword">for</span> user admin</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml<span class="cm-tab" role="presentation" cm-text="	">  </span>#添加授权</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 配置文件最后追加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.enabled : <span class="cm-atom">true</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-origin : <span class="cm-string">"*"</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl restart elasticsearch httpd</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 655px;"></div><div class="CodeMirror-gutters" style="display: none; height: 655px;"></div></div></div></pre><p><span>使用插件访问 es 集群服务,如下图所示：</span></p><p><img src="cloud_01.assets/image-20230607033024150.png" referrerpolicy="no-referrer" alt="image-20230607033024150"></p><p>&nbsp;</p><h2><a name="elasticsearch基本操作" class="md-header-anchor"></a><span>Elasticsearch基本操作</span></h2><h3><a name="集群api简介" class="md-header-anchor"></a><span>集群API简介</span></h3><h4><a name="集群状态查询" class="md-header-anchor"></a><span>集群状态查询</span></h4><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 查询支持的关键字</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XGET http://es-0001:9200/_cat/</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">#查看master节点的信息</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XGET http://es-0001:9200/_cat/master</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 显示详细信息 ?v</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XGET http://es-0001:9200/_cat/master?v</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 显示帮助信息 ?help</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XGET http://es-0001:9200/_cat/master?help</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 206px;"></div><div class="CodeMirror-gutters" style="display: none; height: 206px;"></div></div></div></pre><h4><a name="创建索引" class="md-header-anchor"></a><span>创建索引</span></h4><p><span>图形界面创建：</span></p><p><img src="cloud_01.assets/clip_image002.jpg" referrerpolicy="no-referrer" alt="img"></p><p><span>命令行创建：</span></p><ul><li><span>指定索引的名称tedu，指定分片数量5，指定副本数量1</span></li><li><span>创建索引使用 PUT 方法，创建完成以后通过 head 插件验证</span></li></ul><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">需要告诉es写的是一个json的数据 <span class="cm-attribute">-H</span> <span class="cm-string">"Content-Type: application/json"</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XPUT -H "Content-Type: application/json" \</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http://es-0001:9200/tedu <span class="cm-attribute">-d</span> <span class="cm-string">'{</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"settings"</span>:{</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; <span class="cm-string">"index"</span>:{</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"number_of_shards"</span>: <span class="cm-number">5</span>, </span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"number_of_replicas"</span>: <span class="cm-number">1</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; }</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  }</span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}<span class="cm-string">'</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 257px;"></div><div class="CodeMirror-gutters" style="display: none; height: 257px;"></div></div></div></pre><h4><a name="增加数据" class="md-header-anchor"></a><span>增加数据</span></h4><p><span>在tedu的索引下，创建类型teacher，在teacher下创建数据ID号为1</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XPUT -H "Content-Type: application/json" \</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  http://es-0001:9200/tedu/teacher/1 <span class="cm-attribute">-d</span> <span class="cm-string">'{</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"职业"</span>: <span class="cm-string">"讲师"</span>,</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"名字"</span>: <span class="cm-string">"欣欣"</span>,</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"课程"</span>: <span class="cm-string">"五阶段"</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<span class="cm-string">' </span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 154px;"></div><div class="CodeMirror-gutters" style="display: none; height: 154px;"></div></div></div></pre><h4><a name="查询数据" class="md-header-anchor"></a><span>查询数据</span></h4><p><span>查询显示结果时候可以用 pretty 规范显示格式</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XGET http://es-0001:9200/tedu/teacher/1?pretty</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><h4><a name="修改数据" class="md-header-anchor"></a><span>修改数据</span></h4><p><span>需要指定修改数据的ID号，doc为关键字，指文档；</span></p><p><span>在doc中的值中，输入修改后的数据(以json格式书写)</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XPOST -H "Content-Type: application/json" \</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  http://es-0001:9200/tedu/teacher/1/_update <span class="cm-attribute">-d</span> <span class="cm-string">'{ </span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-string">"doc"</span>: {<span class="cm-string">"名字"</span>:<span class="cm-string">"老司机"</span>}</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<span class="cm-string">'</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 103px;"></div><div class="CodeMirror-gutters" style="display: none; height: 103px;"></div></div></div></pre><h4><a name="删除数据" class="md-header-anchor"></a><span>删除数据</span></h4><p><span>删除时候可以是文档，也可以是索引（库），但不能是类型</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>x</pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 删除一条</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XDELETE http://es-0001:9200/tedu/teacher/1</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment"># 删除索引</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XDELETE http://es-0001:9200/tedu</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">浏览器查看已经删除，没有数据</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 154px;"></div><div class="CodeMirror-gutters" style="display: none; height: 154px;"></div></div></div></pre><h4><a name="导入数据" class="md-header-anchor"></a><span>导入数据</span></h4><ul><li><span>日志文件在 5/public/logs.jsonl.gz</span></li></ul><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@ecs-proxy public]<span class="cm-comment"># scp /root/5/public/logs.jsonl.gz 192.168.1.21:/root/</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># gunzip logs.jsonl.gz </span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># curl -XPOST -H "Content-Type: application/json" http://es-0001:9200/_bulk --data-binary @logs.jsonl </span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 103px;"></div><div class="CodeMirror-gutters" style="display: none; height: 103px;"></div></div></div></pre><h2><a name="kibana安装" class="md-header-anchor"></a><span>kibana安装</span></h2><h3><a name="购买云主机-n149" class="md-header-anchor"></a><span>购买云主机 </span></h3><figure><table><thead><tr><th><span>主机</span></th><th><span>IP地址</span></th><th><span>配置</span></th></tr></thead><tbody><tr><td><span>kibana</span></td><td><span>192.168.1.26</span></td><td><span>最低配置2核4G</span></td></tr></tbody></table></figure><h3><a name="安装kibana" class="md-header-anchor"></a><span>安装kibana</span></h3><p><span>kibana 是什么：数据可视化平台工具</span></p><p><span>特点：</span></p><p><span> </span><span>-</span><span> [x] 灵活的分析和可视化平台</span></p><p><span> </span><span>-</span><span> [x] 实时总结流量和数据的图表</span></p><p><span> </span><span>-</span><span> [x] 为不同的用户显示直观的界面</span></p><p><span> </span><span>-</span><span> [x] 即时分享和嵌入的仪表板</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4.16667px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana ~]<span class="cm-comment"># vim /etc/hosts</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.21<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0001</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.22<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0002</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.23<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0003</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.24<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0004</span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.25<span class="cm-tab" role="presentation" cm-text="	">    </span>es-0005</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.26<span class="cm-tab" role="presentation" cm-text="	">    </span>kibana</span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana ~]<span class="cm-comment"># yum install -y kibana</span></span></pre><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana ~]<span class="cm-comment"># vim /etc/kibana/kibana.yml</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">2</span>  server.port: <span class="cm-number">5601</span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#监听端口</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">7</span>  server.host: <span class="cm-string">"0.0.0.0"</span><span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#监听地址</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">28</span>  elasticsearch.hosts: [<span class="cm-string">"http://es-0002:9200"</span>, <span class="cm-string">"http://es-0003:9200"</span>]<span class="cm-tab" role="presentation" cm-text="	"> </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#es地址</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">113</span> i18n.locale: <span class="cm-string">"zh-CN"</span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#中文</span></span></pre></div><div class="" style="position: relative;"><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana ~]<span class="cm-comment"># systemctl enable --now kibana</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 399px;"></div><div class="CodeMirror-gutters" style="display: none; height: 399px;"></div></div></div></pre><ul><li><p><span>使用 ELB 发布服务，通过 WEB 浏览器访问验证</span></p><p><img src="cloud_01.assets/image-20230607005223135.png" referrerpolicy="no-referrer" alt="image-20230607005223135"></p><p><img src="cloud_01.assets/image-20230607005259904.png" referrerpolicy="no-referrer" alt="image-20230607005259904"></p></li></ul><p><img src="cloud_01.assets/image-20230607005324139.png" referrerpolicy="no-referrer" alt="image-20230607005324139"></p><p><img src="cloud_01.assets/image-20230607005406356.png" referrerpolicy="no-referrer" alt="image-20230607005406356"></p><p><img src="cloud_01.assets/image-20230607005449913.png" referrerpolicy="no-referrer" alt="image-20230607005449913"></p><p><img src="cloud_01.assets/image-20230607005500367.png" referrerpolicy="no-referrer" alt="image-20230607005500367"></p><p><img src="cloud_01.assets/image-20230607005517165.png" referrerpolicy="no-referrer" alt="image-20230607005517165"></p><p><span>浏览器访问查看结果：负载均衡IP:5601</span></p><p><img src="cloud_01.assets/image-20230607005606908.png" referrerpolicy="no-referrer" alt="image-20230607005606908"></p></div>
</body>
</html>